package com.example.producer.config;

import com.example.producer.comm.RabbitConstant;
import org.springframework.context.annotation.Configuration;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;


/**
 * @description 简单模式
 * @author shiguorang
 * @date 2023/6/29 11:12:02
 * @version 1.0
 */
@Configuration
public class RabbitSimpleProvider {
    @Bean
    public Queue simpleQueue() {
        return new Queue(RabbitConstant.SIMPLE_QUEUE_NAME);
    }
}
